package org.fcy.controller;


import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.tags.Tags;
import lombok.RequiredArgsConstructor;
import org.fcy.domain.po.Result;
import org.fcy.domain.po.UserHealthInfo;
import org.fcy.service.IUserHealthInfoService;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 用户健康信息表 前端控制器
 * </p>
 *
 * @author fcy
 * @since 2025-10-28
 */
@RestController
@Tag(name = "用户健康信息")
@RequestMapping("/user-health-info")
@RequiredArgsConstructor
public class UserHealthInfoController {
    private final IUserHealthInfoService userHealthInfoService;

    /**
     * 创建用户健康信息
     *
     * @param userHealthInfo 用户健康信息
     * @return
     */

    @PostMapping
    public Result<String> createHealthInfo(@RequestBody UserHealthInfo userHealthInfo) {
        return userHealthInfoService.createHealthInfo(userHealthInfo);
    }

}
